package nb.yan.service.impl;

import nb.yan.dao.PraiseDao;
import nb.yan.service.PraiseService;

public class PraiseServiceImpl implements PraiseService {
	
	private PraiseDao praiseDao;

	public PraiseServiceImpl(PraiseDao praiseDao) {
		super();
		this.praiseDao = praiseDao;
	}

	@Override
	public void praiseDish(int dishId) {
		this.praiseDao.modifyCountById(dishId);
	}
	
}
